/* 通用设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: linear-gradient(135deg, #6a11cb, #2575fc); /* 背景渐变 */
}

.container {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

/* 标题 */
h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: bold;
}

/* 表单 */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 12px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #2575fc;
    outline: none;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #2575fc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #1e64d2;
}

/* 错误和成功信息 */
.error-message, .success-message {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

.error-message {
    color: #e74c3c;
}

.success-message {
    color: #2ecc71;
}

/* 链接 */
.link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #2575fc;
    text-decoration: none;
    font-size: 14px;
}

.link:hover {
    text-decoration: underline;
}

/* 响应式布局 */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        width: 90%;
    }

    h2 {
        font-size: 22px;
    }

    input[type="text"],
    input[type="password"] {
        font-size: 14px;
    }

    button[type="submit"] {
        font-size: 14px;
    }
}

/* Paper Detail Page Styles */
.paper-detail-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.detail-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detail-box h2, .detail-box h3 {
    color: #34495e;
    font-size: 20px;
    margin-bottom: 10px;
}

.detail-box p {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Button Styling */
.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background-color: #2980b9;
}
